import service from '@/utils/request'

export const useOrderDepositOrderApi = (id: number) => {
	return service.get('/deposit-order/' + id)
}

export const useOrderDepositOrderSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/deposit-order', dataForm)
	} else {
		return service.post('/deposit-order', dataForm)
	}
}